export const formItems = {
	"hwcs": [
		[{
				key: "name",
				label: "商品名称",
				placeholder: "请输入商品名称",
				type: "text",
				required: true,
				value: "",
				rules: {},
			}, {
				key: "brand",
				label: "品牌",
				placeholder: "请输入品牌",
				type: "text",
				required: false,
				value: "",
				rules: {},
			}, {
				key: "p_category_id",
				label: "货物分类",
				placeholder: "请选择货物分类 >",
				type: "actionSheet",
				required: true,
				value: {
					pid: 0,
					value: '',
					text: '',
					level: 1,
					type: 'release_goods',
				},
				rules: {},
				child: {
					key: "category_id",
					label: "二级分类",
					placeholder: "请选择二级分类 >",
					type: "actionSheet",
					required: true,
					value: {
						pid: 0,
						value: '',
						text: '',
						level: 2,
						type: 'release_goods',
					},
					rules: {},
				}
			}, {
				key: "goods_num",
				label: "起批数量",
				placeholder: "请输入数字",
				type: "number",
				required: true,
				value: "",
				rules: {},
			}, {
				key: "number_unit",
				label: "数量单位",
				placeholder: "请选择数量单位",
				// type: "select",
				type: "radio",
				wrap: false,
				required: true,
				value: "",
				rules: {},
				details: {
					type: "numberUnit"
				}
			}, {
				key: "desire_price",
				label: "单价",
				placeholder: "请输入数字",
				type: "number",
				required: true,
				slot:'price_unit',
				slot1:'number_unit',
				value: "",
				rules: {},
			},
			{
				key: "price_unit",
				label: "价格单位",
				placeholder: "",
				type: "radio",
				wrap: true,
				required: true,
				value: "元",
				rules: {},
				details: {
					type: "priceUnit"
				}
			},
			// {
			// 	key: "numbers",
			// 	label: "起批数量",
			// 	placeholder: "请输入数字",
			// 	type: "number",
			// 	required: true,
			// 	value: "",
			// 	rules: {},
			// },
			{
				key: "goods_weight",
				label: "单件重量(kg)",
				placeholder: "请输入数字",
				type: "number",
				required: true,
				value: "",
				rules: {},
			},
			{
				key: "goods_volume",
				label: "单件体积(m³)",
				placeholder: "请输入数字",
				type: "number",
				required: true,
				value: "",
				rules: {},
			},
			{
				key: ['goods_l', 'goods_w', 'goods_h'],
				label: "单件商品最大尺寸",
				placeholder: ['长', '宽', '高'],
				type: "manyInput",
				required: false,
				value: ['', '', ''],
				rules: {},
			},
		],
		[{
				key: "desire_speed",
				label: "生产时间（天）",
				placeholder: "请输入数字",
				type: "number",
				required: true,
				value: "",
				rules: {},
			},
			// {
			// 	key: "speed_unit",
			// 	label: "速度单位",
			// 	placeholder: "",
			// 	type: "radio",
			// 	required: false,
			// 	value: "天",
			// 	rules: {},
			// 	details: {
			// 		type: "speedUnit"
			// 	}
			// },
			// {
			// 	key: "logo",
			// 	label: "上传商品主图",
			// 	placeholder: "上传商品主图",
			// 	type: "images",
			// 	required: true,
			// 	value: [],
			// 	rules: {
			// 		length:1
			// 	},
			// },
			// {
			// 	key: "goods_brief",
			// 	label: "商品介绍",
			// 	placeholder: "请输入商品介绍",
			// 	type: "text",
			// 	required: false,
			// 	value: "",
			// 	rules: {},
			// },
			{
				key: "buy_images",
				label: "上传商品详情图片",
				placeholder: "上传商品详情图片",
				type: "images",
				required: true,
				value: [],
				rules: {},
			},
			// {
			// 	key: "buy_videos",
			// 	label: "上传视频",
			// 	placeholder: "",
			// 	type: "videos",
			// 	required: false,
			// 	value: [],
			// 	rules: {},
			// },
			{
				key: "buy_files",
				label: "上传文件",
				placeholder: "",
				type: "files",
				required: false,
				value: [],
				rules: {},
			},
		],
		[{
			key: "content",
			label: "货物详情",
			placeholder: "在此处输入详情",
			type: "textarea",
			required: true,
			value: "",
			rules: {},
		}],
		[{
				key: "departure_city",
				label: "货物出发(所在)地",
				placeholder: "城市信息(默认不限)",
				type: "port_city",
				required: true,
				value: [],
				rules: {},
			},
			{
				key: "pay_type",
				label: "付款方式",
				placeholder: "预付全款",
				type: "actionSheet",
				required: true,
				value: {
					pid: 0,
					value: 1,
					text: '预付全款',
					level: 1,
					type: 'pay_type',
				},
				rules: {},
			},
			{
				key: "is_express_price",
				label: "是否含运费",
				placeholder: "",
				type: "radio",
				required: true,
				value: "1",
				rules: {},
			},
			{
				key: "is_topping",
				label: "是否推广置顶",
				placeholder: "",
				type: "radio",
				required: true,
				value: "1",
				rules: {},
			},
			// {
			// 	key: "is_margin",
			// 	label: "是否缴纳保证金",
			// 	placeholder: "",
			// 	type: "radio",
			// 	required: false,
			// 	value: "1",
			// 	rules: {},
			// },
			// {
			// 	key: "margin_price",
			// 	label: "保证金金额",
			// 	explain: "保证金释义",
			// 	explainTitle: "保证金",
			// 	placeholder: "请输入金额",
			// 	type: "digit",
			// 	required: false,
			// 	value: "",
			// 	rules: {},
			// },
			// {
			// 	key: "margin_type",
			// 	label: "保证金类型", // 1=元，2=卢布
			// 	placeholder: "",
			// 	type: "radio",
			// 	required: false,
			// 	value: "1",
			// 	rules: {},
			// 	details: {
			// 		type: "marginType"
			// 	}
			// }
		]
	],
	"hwjb": [
		[{
				key: "name",
				label: "货物名称",
				placeholder: "请输入货物名称",
				type: "text",
				required: true,
				value: "",
				rules: {},
			}, {
				key: "brand",
				label: "品牌",
				placeholder: "请输入品牌",
				type: "text",
				required: false,
				value: "",
				rules: {},
			}, {
				key: "p_category_id",
				label: "货物分类",
				placeholder: "请选择货物分类 >",
				type: "actionSheet",
				required: true,
				value: {
					pid: 0,
					value: '',
					text: '',
					level: 1,
					type: 'release_goods',
				},
				rules: {},
				child: {
					key: "category_id",
					label: "二级分类",
					placeholder: "请选择二级分类 >",
					type: "actionSheet",
					required: true,
					value: {
						pid: 0,
						value: '',
						text: '',
						level: 2,
						type: 'release_goods',
					},
					rules: {},
				}
			}, {
				key: "goods_num",
				label: "数量",
				placeholder: "请输入数字",
				type: "number",
				required: true,
				value: "",
				rules: {},
			}, {
				key: "number_unit",
				label: "数量单位",
				placeholder: "请选择数量单位",
				// type: "select",
				type: "radio",
				wrap: false,
				required: true,
				value: "",
				rules: {},
				details: {
					type: "numberUnit"
				}
			}, {
				key: "desire_price",
				label: "期望单价",
				placeholder: "请输入数字",
				type: "number",
				required: false,
				slot:'price_unit',
				slot1:'number_unit',
				value: "",
				rules: {},
			},
			{
				key: "price_unit",
				label: "价格单位",
				placeholder: "",
				type: "radio",
				wrap: true,
				required: false,
				value: "元",
				rules: {},
				details: {
					type: "priceUnit"
				}
			},
			{
				key: "goods_weight",
				label: "大概总重量(kg)",
				placeholder: "请输入数字",
				type: "number",
				required: true,
				value: "",
				rules: {},
			},
			{
				key: "goods_volume",
				label: "大概总体积(m³)",
				placeholder: "请输入数字",
				type: "number",
				required: true,
				value: "",
				rules: {},
			},
		],
		[{
				key: "desire_speed",
				label: "期望时效(天)",
				placeholder: "请输入数字",
				type: "number",
				required: true,
				value: "",
				rules: {},
			},
			
			// {
			// 	key: "speed_unit",
			// 	label: "速度单位",
			// 	placeholder: "",
			// 	type: "radio",
			// 	required: false,
			// 	value: "天",
			// 	rules: {},
			// 	details: {
			// 		type: "speedUnit"
			// 	}
			// },
			{
				key: "logo",
				label: "上传商品主图",
				placeholder: "上传商品主图",
				type: "images",
				required: true,
				value: [],
				rules: {
					length:1
				},
			},
			// {
			// 	key: "goods_brief",
			// 	label: "商品介绍",
			// 	placeholder: "请输入商品介绍",
			// 	type: "text",
			// 	required: false,
			// 	value: "",
			// 	rules: {},
			// },
			{
				key: "buy_images",
				label: "上传商品详情图片",
				placeholder: "上传商品详情图片",
				type: "images",
				required: true,
				value: [],
				rules: {},
			},
			{
				key: "buy_videos",
				label: "上传视频",
				placeholder: "",
				type: "videos",
				required: false,
				value: [],
				rules: {},
			},
			{
				key: "buy_files",
				label: "上传文件",
				placeholder: "",
				type: "files",
				required: false,
				value: [],
				rules: {},
			},
			{
				key: "filelist",
				label: "请上传商品清单",
				placeholder: "",
				type: "filelist",
				required: false,
				value: [],
				rules: {},
			}
		],
		[{
			key: "content",
			label: "货物详情",
			placeholder: "在此处输入详情",
			type: "textarea",
			required: true,
			value: "",
			rules: {},
		}],
		[{
				key: "reach_city",
				label: "货物到达(发送)地",
				placeholder: "城市信息(默认不限)",
				type: "port_city",
				required: true,
				value: [],
				rules: {},
			},
			{
				key: "pay_type",
				label: "付款方式",
				placeholder: "预付全款",
				type: "actionSheet",
				required: true,
				value: {
					pid: 0,
					value: 1,
					text: '预付全款',
					level: 1,
					type: 'pay_type',
				},
				rules: {},
			},
			{
				key: "is_express_price",
				label: "是否含运费",
				placeholder: "",
				type: "radio",
				required: true,
				value: "1",
				rules: {},
			},
			{
				key: "is_topping",
				label: "是否推广置顶",
				placeholder: "",
				type: "radio",
				required: false,
				value: "1",
				rules: {},
			},
			{
				key: "is_margin",
				label: "是否缴纳保证金",
				placeholder: "",
				type: "radio",
				required: false,
				value: "1",
				rules: {
					
				},
			},
			{
				key: "margin_price",
				label: "保证金金额",
				explain: "保证金释义",
				explainTitle: "保证金",
				placeholder: "请输入金额",
				type: "digit",
				required: false,
				value: "",
				rules: {},
			},
			{
				key: "margin_type",
				label: "保证金类型", // 1=元，2=卢布
				placeholder: "",
				type: "radio",
				required: false,
				value: "1",
				rules: {},
				details: {
					type: "marginType"
				}
			}
		]
	]
}